package com.simplemonkey;

import com.jme.input.MouseInputListener;

/**
 * This is just a container that can listen to Mouse events. It is a good choice
 * for use as the top level container in your widget graph; it will pass mouse
 * events from jME down to the widgets it contains.
 * @author Sam
 *
 */
public class ListeningContainer extends Container implements MouseInputListener {

	
	public void onButton(int button, boolean pressed, int x, int y) {
		this.mousePress(pressed, button, x, y);

	}

	
	public void onMove(int delta, int delta2, int x, int y) {
		this.mouseMove(x, y);

	}

	
	public void onWheel(int wheelDelta, int x, int y) {
		
	}
}
